home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Software Contest 3 / FM Towns Software Contest 3.iso / exp / video_t / no1 / c_sorse / check.c < prev    next >
Text File  |  1994-01-07  |  4KB  |  175 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    Dialog_che ;
  9. extern int    Message_che ;
  10. extern int    _001Message_che ;
  11. extern int    _002Message_che ;
  12. extern int    DButton_che ;
  13. extern int    che_on() ;
  14. extern int    _001DButton_che ;
  15. extern int    che_off() ;
  16. extern int    Message_cha5 ;
  17. extern int    _001Message_cha5 ;
  18. extern int    _003Message_che ;
  19.  
  20. #define ALIGN    4
  21. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  22.  
  23. /*    MMI_init 用データ    */
  24.  
  25. /*    ヘッダ    */
  26.  
  27. MMIINIT    initDataCHECK = { "MmiInit",   9, 0 } ;
  28.  
  29. /* Dialog_che */
  30.  
  31. static MMIPACKET d001 = {    &Dialog_che,
  32.                             NULL,
  33.                             &MJ_DIALOGL40,
  34.                             OFFSET(DIALOGL40),
  35.                             0
  36.                         } ;
  37. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40,
  38.                              107,  40, 369, 185, 0, 7, 0,
  39.                             MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  40.                             NULL,   0,   0
  41.                         } ;
  42.  
  43. /* Message_che */
  44.  
  45. static MMIPACKET d002 = {    &Message_che,
  46.                             &Dialog_che,
  47.                             &MJ_MSGL40,
  48.                             OFFSET(MSGL40),
  49.                             0
  50.                         } ;
  51. static MSGL40    d002d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  52.                              112,  45, 360,  68, 0,15,12,
  53.                             MS_NONEL40,
  54.                             "座標チェック",
  55.                                2,  16,  16,
  56.                             MS_NONEL40,
  57.                                3,   0
  58.                         } ;
  59.  
  60. /* _001Message_che */
  61.  
  62. static MMIPACKET d003 = {    &_001Message_che,
  63.                             &Dialog_che,
  64.                             &MJ_MSGL40,
  65.                             OFFSET(MSGL40),
  66.                             0
  67.                         } ;
  68. static MSGL40    d003d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  69.                              112,  72, 363,  90, 0,15,14,
  70.                             MS_NONEL40,
  71.                             "実行中に座標を指定します。",
  72.                                1,  12,  12,
  73.                             MS_NONEL40,
  74.                                1,   0
  75.                         } ;
  76.  
  77. /* _002Message_che */
  78.  
  79. static MMIPACKET d004 = {    &_002Message_che,
  80.                             &Dialog_che,
  81.                             &MJ_MSGL40,
  82.                             OFFSET(MSGL40),
  83.                             0
  84.                         } ;
  85. static MSGL40    d004d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  86.                              114,  95, 360, 111, 0,15,14,
  87.                             MS_NONEL40,
  88.                             "実行後に/IFに続く2つの座標が出力され",
  89.                                1,  12,  12,
  90.                             MS_NONEL40,
  91.                                1,   0
  92.                         } ;
  93.  
  94. /* DButton_che */
  95.  
  96. static MMIPACKET d005 = {    &DButton_che,
  97.                             &Dialog_che,
  98.                             &MJ_DBUTTONL40,
  99.                             OFFSET(DBUTTONL40),
  100.                             0
  101.                         } ;
  102. static DBUTTONL40    d005d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
  103.                              138, 143, 217, 168, 0, 7, 0,
  104.                             MS_UFRAMEL40 | MS_FRAMEL40 | MS_DEFAULTL40,
  105.                             che_on,
  106.                             0x0000
  107.                         } ;
  108.  
  109. /* _001DButton_che */
  110.  
  111. static MMIPACKET d006 = {    &_001DButton_che,
  112.                             &Dialog_che,
  113.                             &MJ_DBUTTONL40,
  114.                             OFFSET(DBUTTONL40),
  115.                             0
  116.                         } ;
  117. static DBUTTONL40    d006d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
  118.                              255, 144, 334, 169, 0, 7, 0,
  119.                             MS_UFRAMEL40 | MS_FRAMEL40,
  120.                             che_off,
  121.                             0x0000
  122.                         } ;
  123.  
  124. /* Message_cha5 */
  125.  
  126. static MMIPACKET d007 = {    &Message_cha5,
  127.                             &Dialog_che,
  128.                             &MJ_MSGL40,
  129.                             OFFSET(MSGL40),
  130.                             0
  131.                         } ;
  132. static MSGL40    d007d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  133.                              140, 144, 217, 167, 0,15,15,
  134.                             MS_NONEL40,
  135.                             "確定",
  136.                                2,  16,  16,
  137.                             MS_NONEL40,
  138.                               16,   0
  139.                         } ;
  140.  
  141. /* _001Message_cha5 */
  142.  
  143. static MMIPACKET d008 = {    &_001Message_cha5,
  144.                             &Dialog_che,
  145.                             &MJ_MSGL40,
  146.                             OFFSET(MSGL40),
  147.                             0
  148.                         } ;
  149. static MSGL40    d008d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  150.                              256, 145, 333, 168, 0,15,15,
  151.                             MS_NONEL40,
  152.                             "取消",
  153.                                2,  16,  16,
  154.                             MS_NONEL40,
  155.                               16,   0
  156.                         } ;
  157.  
  158. /* _003Message_che */
  159.  
  160. static MMIPACKET d009 = {    &_003Message_che,
  161.                             &Dialog_che,
  162.                             &MJ_MSGL40,
  163.                             OFFSET(MSGL40),
  164.                             0
  165.                         } ;
  166. static MSGL40    d009d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  167.                              112, 113, 355, 129, 0,15,14,
  168.                             MS_NONEL40,
  169.                             "ますので後でラベル名を入力して下さい",
  170.                                1,  12,  12,
  171.                             MS_NONEL40,
  172.                                1,   0
  173.                         } ;
  174.  
  175.